
import { Alert } from 'react-native';
import {
  useMemoizedFn
} from '@dibin_cn/rn-hooks';


export function useNotify() {
  const successNotify = (content: string) => {
    Alert.alert("success", content)
  };

  const failNotify = (content: string) => {
    Alert.alert("fail", content)
  };

  return {
    successNotify: useMemoizedFn(successNotify),
    failNotify: useMemoizedFn(failNotify),
  };
}
